{include file="common/header"/}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form layui-form-pane" lay-filter="form">
                        <fieldset class="layui-elem-field">
                          <legend>基本信息</legend>
                          <div class="layui-field-box">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">公众号名称</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="name" lay-verify="required" placeholder="{:lang('pleaseEnter')}公众号名称" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        *
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">域名</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="domain" placeholder="{:lang('pleaseEnter')}域名" lay-verify="required" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        如：http://www.tpcms.com    结尾不带 / 
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">AppID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="appid" placeholder="{:lang('pleaseEnter')}AppID" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        *
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">AppSecret</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="appsecret" placeholder="{:lang('pleaseEnter')}AppSecret" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        *
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    
                                    <label class="layui-form-label">消息服务器URL</label>
                                    <div class="layui-input-inline">
                                        <input type="hidden" name="returnurl" value="{$call_back_url}">
                                        <input type="text" name="" disabled value="{$call_back_url}" class="layui-input layui-disabled">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        消息接收 服务器URL
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">Token</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="token" placeholder="{:lang('pleaseEnter')}token" class="layui-input">
                                    </div>

                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">EncodingAESKey</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="aeskey" placeholder="{:lang('pleaseEnter')}EncodingAESKey" class="layui-input">
                                    </div>
                                </div>
                          </div>
                        </fieldset>
                        <fieldset class="layui-elem-field">
                          <legend>微信支付</legend>
                          <div class="layui-field-box">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">商户号</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mchid" placeholder="{:lang('pleaseEnter')}商户号" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">支付密钥</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="paykey" placeholder="{:lang('pleaseEnter')}支付密钥" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">
                                        微信支付 / 安全中心 设置 
                                    </div>
                                </div>
                                <!-- <div class="layui-form-item">
                                    <label class="layui-form-label">微信商户证书</label>
                                    <div class="layui-input-inline">
                                        <input name="pem" checked value="pem" type="radio" title="上传PEM证书">
                                        <input name="pem" value="p12" type="radio" title="上传P12证书">                              
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <div class="layui-upload" style="width: 120px;display: inline-block;">
                                            <input type="hidden" name="mch_ssl_key" id="mch_ssl_key" value="">
                                            <button type="button" class="layui-btn layui-btn-primary" id="thumbBtn"><i class="icon icon-upload3"></i>上传KEY证书</button>
                                            <div class="layui-upload-list">
                                                <img class="layui-upload-img" style="width:120px;max-height:100px;" id="mch_ssl_key" src="" title="">
                                                <p id="mch_ssl_keyText"></p>
                                            </div>
                                        </div>               
                                        <div class="layui-upload" style="width: 120px;display: inline-block;">
                                            <input type="hidden" name="mch_ssl_key" id="mch_ssl_key" value="">
                                            <button type="button" class="layui-btn layui-btn-primary" id="thumbBtn"><i class="icon icon-upload3"></i>上传CERT上传</button>
                                            <div class="layui-upload-list">
                                                <img class="layui-upload-img" style="width:120px;max-height:100px;" id="mch_ssl_key" src="" title="">
                                                <p id="mch_ssl_keyText"></p>
                                            </div>
                                        </div>                             
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <div class="layui-upload" style="width: 120px;display: inline-block;">
                                            <input type="hidden" name="mch_ssl_key" id="mch_ssl_key" value="">
                                            <button type="button" class="layui-btn layui-btn-primary" id="thumbBtn"><i class="icon icon-upload3"></i>上传P12证书</button>
                                            <div class="layui-upload-list">
                                                <img class="layui-upload-img" style="width:120px;max-height:100px;" id="mch_ssl_key" src="" title="">
                                                <p id="mch_ssl_keyText"></p>
                                            </div>
                                        </div>                              
                                    </div>
                                </div> -->
                          </div>
                        </fieldset>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id"  >
                                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
        
    </div>
</div>

{include file="common/footer"/}
<script>
    layui.use(['form','laydate','upload'], function () {
        var form = layui.form, laydate=layui.laydate,upload = layui.upload;
        var info = '';
        info = {:json_encode($info)};
        form.val("form", info);
        form.render();
    });
</script>